﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Vision.Common
{
    public class CustomConfigurationConfigureSectionHandler : GenericConfigurationSectionHandler<CustomConfigurationConfigureData>
    { 
    }

    public interface ICustomConfigurationConfigureData
    {
        string GetCustomConfigFilePath();
    }

    [Serializable]
    [XmlRoot(CustomConfigurationConfigureData.SectionName)]
    public class CustomConfigurationConfigureData : ICustomConfigurationConfigureData
    {
        public const string SectionName = "customConfigurationConfigure";

        [XmlAttribute("configFilePath")]
        public string CustomConfigFilePath { get; set; }

        public virtual string GetCustomConfigFilePath()
        {
            return CustomConfigFilePath;
        }
    }
}
